package com.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint; 
import com.core.entity.AbstractBusinessEntity; 
 
/**
 *  查询定义
 *
 */
@Entity 
@Table( 
	uniqueConstraints = {
		@UniqueConstraint(columnNames = {"NAMESPACE", "NAME"})
	}	
)
public class TB_BASE_STATEMENT extends AbstractBusinessEntity{ 
	private static final long serialVersionUID = 6416539371815319813L;
	public final static String STATEMENT_TYPE_SQL="SQL";
	public final static String STATEMENT_TYPE_JPQL="JPQL";
	@Column(length=100,nullable=false)
	private String NAMESPACE;  //命名空间
 	@Column(length=10 )
	private String TYPE;  //语句类型 "SQL"、"JPQL"
	@Column(length=30,nullable=false)
    private String NAME;       //名称
	@Column(length=4000)
    private String CONTENT;    //内容
	@Column(length=1000)
    private String EXPLANATION ;//说明
 	@Column(length=2000)
    private String INPUT_XML;    //输入
	@Column(length=2000)
    private String OUTPUT_XML;    //输出
	public String getNAMESPACE() {
		return NAMESPACE;
	}
	public void setNAMESPACE(String nAMESPACE) {
		NAMESPACE = nAMESPACE;
	}
	public String getTYPE() {
		return TYPE;
	}
	public void setTYPE(String tYPE) {
		TYPE = tYPE;
	}
	public String getNAME() {
		return NAME;
	}
	public void setNAME(String nAME) {
		NAME = nAME;
	}
	public String getCONTENT() {
		return CONTENT;
	}
	public void setCONTENT(String cONTENT) {
		CONTENT = cONTENT;
	}
	public String getEXPLANATION() {
		return EXPLANATION;
	}
	public void setEXPLANATION(String eXPLANATION) {
		EXPLANATION = eXPLANATION;
	}
	public String getINPUT_XML() {
		return INPUT_XML;
	}
	public void setINPUT_XML(String iNPUT_XML) {
		INPUT_XML = iNPUT_XML;
	}
	public String getOUTPUT_XML() {
		return OUTPUT_XML;
	}
	public void setOUTPUT_XML(String oUTPUT_XML) {
		OUTPUT_XML = oUTPUT_XML;
	}
  
}
